package com.dfrz.stockMarket.bean;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.dfrz.stockMarket.util.UtilTools;

public class KlineDataBean {
	private Date date;
	private double open;
	private double close;
	private double loweset;
	private double highest;
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public double getOpen() {
		return open;
	}
	public void setOpen(double open) {
		this.open = open;
	}
	public double getClose() {
		return close;
	}
	public void setClose(double close) {
		this.close = close;
	}
	public double getLoweset() {
		return loweset;
	}
	public void setLoweset(double loweset) {
		this.loweset = loweset;
	}
	public double getHighest() {
		return highest;
	}
	public void setHighest(double highest) {
		this.highest = highest;
	}
	public KlineDataBean(Date date, double open, double close, double loweset,
			double highest) {
		super();
		this.date = date;
		this.open = open;
		this.close = close;
		this.loweset = loweset;
		this.highest = highest;
	}
	@Override
	public String toString() {
		return "["+"'"+UtilTools.cstToHMS(date, "yyyy/MM/dd")+"'"+","+open+","+close+","+loweset+","+highest+"]";
	}
	public static void main(String[] args) {
	    List<KlineDataBean> klineDatas = new ArrayList<KlineDataBean>();
		
		KlineDataBean klineDataBean = new KlineDataBean(new Date(), 222.33, 222.33, 444.22, 454.2);
		KlineDataBean klineDataBean1 = new KlineDataBean(new Date(), 222.33, 222.33, 444.22, 454.2);

		klineDatas.add(klineDataBean);
		klineDatas.add(klineDataBean1);
		System.out.println(klineDatas);
	}
	
}
